<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>My Webview Demo</title>
</head>
<body>

<h1>这个页面是用来测试flutter_inappwebview与html相互通信的</h1>
<div onclick="doPrompt()" class="operate-button">点击调用flutter的snackbar</div>

</body>

<script>
	function doAlert(){
		
	}
	
	function doPrompt(){
		var val=prompt("请输入您想传给flutter参数","this is my customer parameter");
		var res=window.flutter_inappwebview.callHandler('myHandlerName', {js2flutter:val});
		console.log(res);
	}
</script>
<style>
	.operate-button{
		font-size: 4rem;
		background: #8bc4f1;
		text-align: center;
		border-radius: 20px;
		box-shadow: 10px 10px 5px #888888;
		margin: 20px;
	}
</style>
</html>